// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** addTags POST /api/tags/addTags */
export async function addTagsUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.addTagsUsingPOSTParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseString_>('/api/tags/addTags', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** deleteTag POST /api/tags/delete */
export async function deleteTagUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/tags/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** getTags GET /api/tags/get/tags */
export async function getTagsUsingGet(options?: { [key: string]: any }) {
  return request<API.BaseResponseListTags_>('/api/tags/get/tags', {
    method: 'GET',
    ...(options || {}),
  })
}

/** hotTags GET /api/tags/hotTags */
export async function hotTagsUsingGet(options?: { [key: string]: any }) {
  return request<API.BaseResponseListTags_>('/api/tags/hotTags', {
    method: 'GET',
    ...(options || {}),
  })
}

/** recordTags POST /api/tags/record */
export async function recordTagsUsingPost(
  body: API.TagsAddRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/tags/record', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listTagsByPage POST /api/tags/search/page */
export async function listTagsByPageUsingPost(
  body: API.TagsQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageTags_>('/api/tags/search/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
